package com.ruoyi.yyq.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.yyq.api.factory.RemoteCarEvaluationFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteCarEvaluationService", value = ServiceNameConstants.YYQ_SERVICE, fallbackFactory = RemoteCarEvaluationFallbackFactory.class)
public interface RemoteCarEvaluationService {

    @GetMapping("/evaluation/listByMid/{mid}")
    public AjaxResult listByMid(@PathVariable("mid") Long mid, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
